package com.sharp.authorization.dao.join.mapper;

import com.sharp.authorization.dao.join.entity.UserWithRoleList;
import org.apache.ibatis.annotations.Param;

/**
 * Title: UserJoinRole
 * Description: Copyright: Copyright (c) 2019 Company: BHFAE
 *
 * @author Sharp
 * @date 2019/10/5 21:47
 */
public interface UserJoinRoleDao {

    /**
     * 根据customerNumber 获取所有该用户的角色列表
     *
     * @param loginId
     * @return
     */
    UserWithRoleList selectUserWithRoleList(@Param("userId") String userId,
                                            @Param("loginId") String loginId,
                                            @Param("customerNumber") String customerNumber,
                                            @Param("wechatId") String wechatId,
                                            @Param("phoneNumber") String phoneNumber);

    void createViewTest(@Param("userId") String userId);
}
